<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"  %>
<!DOCTYPE html>

<head>
    <meta charset="utf-8">
    <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]-->
    <title>大乱斗后台</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width">
    <link href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
    <link href="http://cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/dld/admin/css/template_main.css">
</head>

<body>
	<jsp:include page="../common/header.jsp"></jsp:include>
        <!--/.navbar-collapse -->
        <div class="templatemo-content-wrapper">
            <div class="templatemo-content">
				<form class="form-horizontal"action="adminEditSubmitLogMngAction" method="post">
				  <div class="form-group">
				    <label for="content" class="col-sm-2 control-label">内容</label>
				    <div class="col-sm-10">
				      <input type="text" class="form-control" id="content" name="logEdit.content" value="${logEdit.content}">
				      <div class="alert alert-danger content-msg" role="alert" style="margin-bottom:0;display:none;"></div>
				    </div>
				  </div>
				  <div class="form-group" style="display:none;">
				    <label for="type" class="col-sm-2 control-label">类别</label>
				    <div class="col-sm-10">
				      <input type="text" class="form-control" id="type" name="logEdit.type" value="${logEdit.type}">
				      <input type="text" class="form-control" id="name" name="logEdit.users_name" value="${logEdit.users_name}">
				      <input type="text" class="form-control" id="id" name="logEdit.id" value="${logEdit.id}">
				    </div>
				  </div>
				  <div class="form-group">
				    <div class="col-sm-offset-2 col-sm-10">
				      <div onclick="submit()" class="btn btn-default">添加</div>
				      <button class="btn btn-warning" onclick="history.go(-1)">取消</button>
				    </div>
				  </div>
				</form>
            </div>
        </div>
	<jsp:include page="../common/footer.jsp"></jsp:include>
    <script src="http://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    <script src="/dld/admin/js/template_js.js"></script>
    <script>
    function submit(){
        if($('#content').val() == ''){
        	$('.content-msg').show();
        	$('.content-msg').text('请输入内容！');
        	return;
        }else{
        	$('.content-msg').hide();
        }
    	$('.form-horizontal').submit();
    }
    </script>
</body>

</html>